package com.ss.android.newmedia.activity;

import com.ss.android.common.ui.view.SwipeOverlayFrameLayout.OnSwipeBackListener;

final class t implements OnSwipeBackListener {
    private final FragmentActivity a;

    t(FragmentActivity arg1) {
        this.a = arg1;

    }

    public final boolean onSwipeBack() {
        boolean v0;
        if(!this.a.useSwipe() || !this.a.useSwipeRight()) {
            v0 = false;
        }
        else {
            this.a.onBackPressed();
            v0 = true;
        }

        return v0;
    }

    public final boolean b() {
        boolean v0;
        if(!this.a.useSwipe() || (this.a.useSwipeRight()) || !this.a.userSwipeLeft()) {
            v0 = false;
        }
        else {
            this.a.onBackPressed();
            v0 = true;
        }

        return v0;
    }
}

